/*!
 * NOTICE OF LICENSE
 * 
 * @author    202 ecommerce <tech@202-ecommerce.com>
 * @author    Mondial Relay
 * @copyright Copyright (c) Mondial Relay
 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 */!function(e){var n={};function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(a,r,function(n){return e[n]}.bind(null,r));return a},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=8)}({2:function(e,n,t){"use strict";t.d(n,"a",(function(){return a}));
/**
 * NOTICE OF LICENSE
 *
 * @author    202 ecommerce <tech@202-ecommerce.com>
 * @author    Mondial Relay
 * @copyright Copyright (c) Mondial Relay
 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 */
var a={url:"//widget.mondialrelay.com/parcelshop-picker/jquery.plugin.mondialrelay.parcelshoppicker.min.js",loaded:!1,initialized:!1,widget_container:"#mondialrelay_widget",save_container:"#mondialrelay_save-container",error_container:"#mondialrelay_errors",summary_container:"#mondialrelay_summary",save_button:".mondialrelay_save-relay",change_button:"#mondialrelay_change-relay",selected_relay_input:"#mondialrelay_selected-relay",widget_search_zipcode_input:"#mondialrelay_widget .MRW-Search .Arg2",widget_search_country_input:"#mondialrelay_widget .MRW-Search .Arg1",savedRelay:null,widget_current_params:null};a.load=function(e){!function(e,n){var t=document.createElement("script");t.onload=n,t.src=e,document.head.appendChild(t)}(a.url,(function(){a.loaded=!0,e()}))},a.init=function(e){if("undefined"==typeof MONDIALRELAY_BAD_CONFIGURATION||!MONDIALRELAY_BAD_CONFIGURATION){if(a.savedRelay&&$(a.summary_container).slideDown(),!a.loaded)return a.addLoader(a.widget_container),void a.load((function(){a.init(e)}));var n={Target:a.selected_relay_input,Brand:MONDIALRELAY_ENSEIGNE,Country:MONDIALRELAY_COUNTRY_ISO,PostCode:MONDIALRELAY_POSTCODE,ShowResultsOnMap:1==MONDIALRELAY_DISPLAY_MAP,NbResults:"7",Responsive:!0,WidgetLanguage:MONDIALRELAY_LANG_ISO,OnParcelShopSelected:function(e){$(a.save_container).show(),a.setSelectedRelay(null,e)}};n.Theme=["ES","IT","PT"].includes(MONDIALRELAY_COUNTRY_ISO)?"inpost":"mondialrelay",e&&$.extend(n,e),a.widget_current_params=n,$(a.widget_container).MR_ParcelShopPicker(n),a.initialized=!0}},a.show=function(){$(a.widget_container).show()},a.hide=function(){$(a.widget_container).hide()},a.update=function(e){$(a.widget_container).trigger("MR_SetParams",e),a.widget_current_params=$.extend(a.widget_current_params,e),a.doSearch()},a.initOrUpdate=function(e){a.initialized?a.update(e):a.init(e)},a.setSelectedRelay=function(e,n){if(window.MONDIALRELAY_SELECTED_RELAY_INFOS=n,void 0!==e&&e||(e=$(a.selected_relay_input).val()),e==$(a.selected_relay_input).val()&&MONDIALRELAY_SELECTED_RELAY_IDENTIFIER!=e){var t=MONDIALRELAY_SELECTED_RELAY_IDENTIFIER;MONDIALRELAY_SELECTED_RELAY_IDENTIFIER=e,$(a).trigger("mondialrelay.selectedRelay",{oldRelay:t,relayData:n})}},a.resetSelectedRelay=function(){var e=MONDIALRELAY_SELECTED_RELAY_IDENTIFIER;MONDIALRELAY_SELECTED_RELAY_IDENTIFIER=null,window.MONDIALRELAY_SELECTED_RELAY_INFOS=[],$(a).trigger("mondialrelay.selectedRelay",{oldRelay:e,relayData:null})},a.resetSavedRelay=function(e){a.savedRelay=null,void 0!==e&&e||($(a.summary_container).slideUp(),$(a.widget_container).slideDown(),$(a.save_container).slideDown())},a.doSearch=function(e,n){var t=[void 0!==e&&e?e:$(a.widget_search_zipcode_input).val(),void 0!==n&&n?n:$(a.widget_search_country_input).val()];$(a.widget_container).trigger("MR_DoSearch",t)},a.displayErrors=function(e){var n=$(a.error_container);0!=n.length&&(n.stop(!0),n.children().length&&n.fadeOut((function(){$(this).empty()})),void 0!==e&&e&&(n.queue((function(){var n=[];$.each(e,(function(e,t){n.push($("<div/>").addClass("alert alert-danger").text(t))})),$(this).append(n),$(this).dequeue()})),n.fadeIn()))},a.addLoader=function(e){0!=$(e).length&&($(e).children(".mondialrelay_loader").length>0||$("#mondialrelay_loader-template").clone().attr("id",null).show().appendTo(e))},a.removeLoader=function(e){$(e).children(".mondialrelay_loader").remove()},$(document).ready((function(){a.savedRelay=MONDIALRELAY_SELECTED_RELAY_IDENTIFIER,$(a).trigger("mondialrelay.ready")})),$(document).on("click",a.change_button,(function(e){a.show()})),$(document).on("click",".MRW-ShowList",(function(e){e.preventDefault(),e.stopPropagation()})),$(document).on("click",".PR-City",(function(e){e.preventDefault(),e.stopPropagation()}))},8:function(e,n,t){"use strict";t.r(n);var a=t(2);
/**
 * NOTICE OF LICENSE
 *
 * @author    202 ecommerce <tech@202-ecommerce.com>
 * @author    Mondial Relay
 * @copyright Copyright (c) Mondial Relay
 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 */$(a.a).on("mondialrelay.ready",(function(){a.a.savedRelay&&a.a.hide(),a.a.init({ColLivMod:MONDIALRELAY_DELIVERY_MODE})})),$(a.a).on("mondialrelay.selectedRelay",(function(e,n){a.a.displayErrors(null),$("#mondialrelay_displayed-relay-number").val(n.relayData.ID)})),$(document).on("submit","#mondialrelay_selected_relay_form",(function(e){if(!$(a.a.selected_relay_input).val())return a.a.displayErrors([MONDIALRELAY_NO_SELECTION_ERROR]),e.stopPropagation(),e.preventDefault(),!1}))}});